Thực đơn
Thuật_toán_Luhn Triển khai giả mãfunction checkLuhn(string purportedCC) { int sum := integer(purportedCC[length(purportedCC)-1]) int nDigits := length(purportedCC) int parity := nDigits modulus 2 for i from 0 to nDigits - 2 { int digit := integer(purportedCC[i]) if i modulus 2 = parity digit := digit × 2 if digit > 9 digit := digit - 9 sum := sum + digit } return (sum modulus 10) = 0}
Thực đơn
Thuật_toán_Luhn Triển khai giả mãLiên quan
Thuật ngữ giải phẫu cử động Thuật toán Thuật ngữ anime và manga Thuật ngữ lý thuyết đồ thị Thuật ngữ thiên văn học Thuật chiêu hồn Thuật toán Dijkstra Thuật ngữ tin học Thuật ngữ ngữ âm học Thuật toán sắp xếpTài liệu tham khảo
WikiPedia: Thuật_toán_Luhn http://www.google.com/patents/US2950048 http://www.google.com/patents?id=Y7leAAAAEBAJ http://www.iso.org/iso/iso_catalogue/catalogue_tc/... http://rosettacode.org/wiki/Luhn_test_of_credit_ca... https://commons.wikimedia.org/wiki/File:Taco_Bell_... https://commons.wikimedia.org/wiki/File:Tractor_Su...